home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP Products & Services 1994 Summer / NeXTSTEP Products & Services 1994 Summer.iso / AlembicDemo.app / NetWatch / NetWatch / PagerScript < prev   
Text File  |  1993-04-27  |  824b  |  29 lines

  1. #! /bin/sh -
  2.  
  3. # This script uses C-Kermit 5A(170) ALPHA, 23 Apr 91, NeXT.
  4. # It was tested using a Telebit T2500, which is Hayes compatible.
  5. echo $PAGERSTRING
  6. # It would be better to run kermit using a pty.
  7. /usr/local/bin/kermit -b 19200 >&- 2>&- << EOF
  8. #/usr/local/bin/kermit -b 19200 << EOF
  9.  
  10. set line /dev/cua               ; rts/cts is not supported in this kermit.
  11. if failure quit
  12.  
  13. # Connect with modem.
  14. set count 8
  15. :reset
  16.   if not count goto abort
  17.   output atz\13                 ; Reset modem.
  18.   input 2 >                     ; Wait for modem prompt.
  19. if failure goto reset
  20.  
  21. # The codes '@' (wait for silence) and ';' (end dialing) may or may not be
  22. # available on your modem.  Replace 321-2333 with the number you want to
  23. # appear on the pager.
  24. output atdt$PAGERSTRING,@321-2333#;H\13
  25. if failure quit
  26. pause 30
  27. quit
  28. EOF
  29.